import { ApiProperty } from '@nestjs/swagger'
import { IsNumber, IsOptional, IsUrl } from 'class-validator'

export class CreateAsrTaskDto {
  @ApiProperty({ description: '音频或视频URL' })
  @IsUrl()
  url: string

  @ApiProperty({ description: '任务类型, 1 腾讯云 2 阿里云', default: 1 })
  @IsNumber()
  @IsOptional()
  taskType: number = 1
}
